<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Boolean实例</title>
</head>
<body>
    <script>
        while(true){
            let year = prompt("后盾人哪年成立的？").trim();
            if(!year) continue;
            console.log(year == "2010" ? "回答正确" : "回答错误");
            break;
        }
    </script>
</body>
</html>